package com.aurora.gulimall.search.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author : Aurora
 * @date : 2024/1/10 21:41
 * @description 接收检索参数
 *
 */

@Data
public class SearchParamDTO {
    @ApiModelProperty(value = "页面传递的检索参数（全文匹配关键字）")
    private String keyword;

    /**
     * 传递三级分类id
     */
    @ApiModelProperty(value = "")
    private Long catalog3Id;

    /**
     * 排序条件
     * saleCount_asc/desc
     * skuPrice_asc/desc
     * hotScore_asc/desc
     */
    @ApiModelProperty(value = "排序条件(saleCount_asc/desc||skuPrice_asc/desc||hotScore_asc/desc)")
    private String sort;

    /**
     * 筛选条件: 是否只显示有货
     * hasStock=0/1
     */
    @ApiModelProperty(value = "筛选条件: 是否只显示有货hasStock=0/1")
    private Integer hasStock;

    /**
     * 筛选条件: 价格区间
     * hasStock=0/1
     * skuPrice区间：1_500/_500/500_
     */
    @ApiModelProperty(value = "筛选条件: 价格区间 hasStock=0/1 || skuPrice区间：1_500/_500/500_")
    private String skuPrice;

    /**
     * 筛选条件：品牌id 可以多选
     */
    @ApiModelProperty(value = "筛选条件：品牌id 可以多选")
    private List<Long> brandId;

    /**
     * 筛选条件：按照属性筛选
     */
    @ApiModelProperty(value = "筛选条件：按照属性筛选")
    private List<String> attrs;
    /**
     * 页码
     */
    @ApiModelProperty(value = "页码")
    private Integer pageNum;

}
